package com.tjetc.dao;

import com.tjetc.entity.Room;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.sql.Date;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface RoomMapper {
    List<Integer> getAllRoomId();
    Room getRoomById(int id);
    int update(Room room);
    //int updateNumber(@Param("list") List<Integer> list);
    int updateNumber(@Param("account") int account,@Param("id") int id);
    int getYesterdayAppoint(@Param("roomId")int roomId, @Param("time")String time);
    @MapKey("id")
    Map<String,String> getRoomByIdAndTime(@Param("roomId") int roomId, @Param("time") String time);
    int getRoomIdByTeaId(int id);
}
